package com.iflytek.day17;

public class _02_MemberInnerTest {
  public static void main(String[] args) {
    Outer1.Inner1 oi = new Outer1().new Inner1();
    oi.method();
  }
}

class Outer1 {  // 外部类
  private final int a = 30;

  // 在成员位置定义一个类
  class Inner1 {
    private final int a = 20;

    public void method() {
      int a = 10;
      System.out.println(a);  // 10   答案：a
      System.out.println(this.a);  // 20	答案：this.a
      System.out.println(Outer1.this.a);  // 30	答案：Outer.this.a
    }
  }
}
